package com.app.biz.controller;

import com.app.biz.service.ICompanyAnalysisService;
import com.app.common.annotation.Anonymous;
import com.app.common.core.controller.BaseController;
import com.app.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 企业分析
 * @author SGC
 * @date 2024-09-09
 */
@RestController
@RequestMapping("/ca")
public class CompanyAnalysisController extends BaseController {

    private final ICompanyAnalysisService companyAnalysisService;

    public CompanyAnalysisController(ICompanyAnalysisService companyAnalysisService) {
        this.companyAnalysisService = companyAnalysisService;
    }

    /**
     * 获取城市企业数量分析
     * @return
     */
    @Anonymous
    @GetMapping("/getCityCompanyCountAnalysis")
    public AjaxResult getCityCompanyCountAnalysis(){
        return AjaxResult.success(companyAnalysisService.getCityCompanyCountAnalysis());
    }
}
